package com.company.cloud.uba.modules.api.fallback;

import com.company.cloud.common.bean.BaseClientResult;
import org.springframework.stereotype.Component;

import com.company.cloud.uba.modules.api.request.SysLogAddBatchRequest;
import com.company.cloud.uba.modules.api.request.SysLogAddRequest;
import com.company.cloud.uba.modules.api.request.UserBrowseAddBatchRequest;
import com.company.cloud.uba.modules.api.request.UserBrowseAddRequest;
import com.company.cloud.uba.modules.api.request.UserBrowseObjLogAddBatchRequest;
import com.company.cloud.uba.modules.api.request.UserBrowseObjLogAddRequest;
import com.company.cloud.uba.modules.api.request.UserLoginLogRequest;
import com.company.cloud.uba.modules.api.service.UbaLogRemoteService;

import feign.hystrix.FallbackFactory;
import lombok.extern.log4j.Log4j2;

@Log4j2
@Component
public class UbaLogRemoteServiceFallbackFactory  implements FallbackFactory<UbaLogRemoteService>{

	@Override
	public UbaLogRemoteService create(Throwable cause) {
		return new UbaLogRemoteService() {

			@Override
			public BaseClientResult<String> saveSysLogOne(SysLogAddRequest params) {
				return BaseClientResult.callbackError();
			}

			@Override
			public BaseClientResult<String> saveSysLogBatch(SysLogAddBatchRequest params) {
				return BaseClientResult.callbackError();
			}

			@Override
			public BaseClientResult<String> saveUserLoginLog(UserLoginLogRequest params) {
				return BaseClientResult.callbackError();
			}

			@Override
			public BaseClientResult<String> saveUserBrowseBatch(UserBrowseAddBatchRequest params) {
				return BaseClientResult.callbackError();
			}

			@Override
			public BaseClientResult<String> saveUserBrowseOne(UserBrowseAddRequest params) {
				return BaseClientResult.callbackError();
			}

			@Override
			public BaseClientResult<String> saveUserBrowseObjLogBatch(UserBrowseObjLogAddBatchRequest params) {
				return BaseClientResult.callbackError();
			}

			@Override
			public BaseClientResult<String> saveUserBrowseObjLogOne(UserBrowseObjLogAddRequest params) {
				return BaseClientResult.callbackError();
			}
		};
	}
	
	

}
